package com.blog.service;

import com.blog.mapper.MenuMapper;
import com.blog.system.Menu;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BaseMenuService {
    @Autowired
    MenuMapper menuMapper;
    public List<Menu> getAllMenus() {
        return  menuMapper.getAllMenus();
    }

    public List<Integer> getMenuByRId(Integer rid) {
        return menuMapper.getMenuByRId(rid);
    }
    public List<Menu> getMenus() {
        return  menuMapper.getMenus();
    }
}
